package com.changanw.tienchin.web.controller.tienchin;

import com.changanw.tienchin.activity.domain.vo.ActivityVo;
import com.changanw.tienchin.activity.service.IActivityService;
import com.changanw.tienchin.business.domain.vo.BusinessVO;
import com.changanw.tienchin.business.service.IBusinessService;
import com.changanw.tienchin.channel.domain.vo.ChannelVo;
import com.changanw.tienchin.channel.service.IChannelService;
import com.changanw.tienchin.clue.domain.vo.ClueVO;
import com.changanw.tienchin.clue.service.IClueService;
import com.changanw.tienchin.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author changanw
 * @description
 * @date 2023/12/18 21:04
 */
@RestController
@RequestMapping("/tienchin/analysis")
public class AnalysisController {
  @Autowired
  IClueService clueService;
  @Autowired
  IBusinessService businessService;
  @Autowired
  IChannelService channelService;
  @Autowired
  IActivityService activityService;

  @GetMapping("/clue")
  public AjaxResult clueAnalysis(ClueVO clueVO){
    return clueService.clueAnalysis(clueVO);
  }
  @GetMapping("/business")
  public AjaxResult businessAnalysis(BusinessVO businessVO){
    return businessService.businessAnalysis(businessVO);
  }
  @GetMapping("/channel")
  public AjaxResult channelAnalysis(ChannelVo channelVo){
    return channelService.channelAnalysis(channelVo);
  }
  @GetMapping("/activity")
  public AjaxResult activityAnalysis(ActivityVo activityVo){
    return activityService.activityAnalysis(activityVo);
  }
}
